package com.ht.module.bus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
import java.io.Serializable;


/**
 * <p>
 * 区划表
 * </p>
 *
 * @author hejialun
 * @since 2024-07-29
 */

@TableName("t_district")
@Data
@Accessors(chain = true)
public class TDistrict{

	@ApiModelProperty("区划编码")
    @TableId
    @NotEmpty
    private String districtCode;

	@ApiModelProperty("区划名称")
    @NotEmpty
    private String districtName;

	@ApiModelProperty("上级区划编码")
    @NotEmpty
    private String parentDistrictCode;

    @ApiModelProperty("对应站点")
    private String stationCode;

    @ApiModelProperty("区划层级：3区县，4乡镇（街道），5村（社区)")
    private String districtLevel;

    @ApiModelProperty("01有效,02无效")
    private String state;

	@ApiModelProperty("uuid")
    private String createUser;
    private LocalDateTime createDate;
    private String updateUser;
    private LocalDateTime updateDate;

    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty("上级区划名称")
    @TableField(exist = false)
    private String parentDistrictName;

    @ApiModelProperty("是否生成站点,01：生成02：不生成")
    @TableField(exist = false)
    private String isCreateStation;

    @ApiModelProperty("对应站点名称")
    @TableField(exist = false)
    private String stationName;

    @ApiModelProperty("创建人姓名")
    @TableField(exist = false)
    private String createUserName;


    @ApiModelProperty("临时上级区划编码")
    @TableField(exist = false)
    private String parentDistrictCodeTmep;

}
